package dynamicproxysamples;

import java.lang.reflect.Proxy;

public class MyClient {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		MyInterface myProxyObj = (MyInterface) Proxy.newProxyInstance(MyInterface.class.getClassLoader(),
				new Class<?>[] { MyInterface.class }, new MyInvocationHandler(new MyActualObject()));
		System.out.println("In Client App:" + myProxyObj.call(35));

	}
}
